package com.horizon.cloud.common.distribute.rateLimit;

public interface RateLimitService {
    //是否超过限流器
    boolean tryAcquire(String cacheKey);

    //初始化一个限流器
    void initLimitKey(String type, String key, Integer maxPermits, Integer rate);
}
